class Teacher  extends Author {
    TeacherInfo teacherInfo
    static constraints = {
        teacherInfo(nullable:true)
    }

    static mapping = {
       table 'teacher'
    }

    String toString() {
        "${name}"
    }
}